<template>
    <div id="OrdersTitle">
        <v-details :inputConfig="inputConfig" :detailData="inputData" :rules="rules" ref="input"></v-details>
    </div>
</template>

<script>
    import details from 'commons/Detail'
    import baseMixin from "@/mixins/BaseMixin";

    export default {
        props: {
            inputData: {
                type: Object,
            }
        },
        mixins: [baseMixin],
        name: "OrdersTitle",
        data() {
            return {}
        },
        computed: {
            inputConfig() {
                
                return [
                    [
                        {
                            type: "input",
                            label: this.$t('wave.filterid'),
                            props: "filterid",
                            disabled: true
                        },
                        {
                            type: "select",
                            label: this.$t('out.wavetype'),
                            props: "rtxwavetype",
                            options: this.getOptions("querycodeLkup/RTXWAVETYPE")
                        },  
                        {
                            type: "",
                            props: "lblordlimit",
                            label: this.$t('wave.lblordlimit') 
                        },
                        {
                            type: "input",
                            label: this.$t('wave.orderqtymin'),
                            props: "orderqtymin",
                        },
                        {
                            type: "input",
                            label: this.$t('wave.orderlinemin'),
                            props: "orderlinemin",
                        }
                    ],
                    [
                        {
                            type: "input",
                            label: this.$t('wave.filtername'),
                            props: "filtername",
                        },
                        {
                            type: "input",
                            label: this.$t('wave.orderNumber'),
                            props: "orderNumber",
                        },  
                        {
                            type: "",
                            props: "lblordlimit1",
                            label: "&nbsp;" 
                        },
                        {
                            type: "input",
                            label: this.$t('wave.orderqtymax'),
                            props: "orderqtymax",
                        },
                        {
                            type: "input",
                            label: this.$t('wave.orderlinemax'),
                            props: "orderlinemax",
                        }
                    ],
                    [
                        {
                            type: "input",
                            label: this.$t('wave.orderQty'),
                            props: "orderQty",
                        },
                       /* {
                            type: "select",
                            label: this.$t('out.rtxexternaltype1'),
                            props: "rtxexternaltype",
                            options: this.getOptions('querycodeLkup/RTXEXTERNALTYPE')
                        }*/
                        
                    ] 
                ]
            },
            rules() {
                return {
                    filtername: [
                        {required: true, trigger: 'blur'},
                    ],
                    orderNumber: [
                        {required: true, trigger: 'blur'},
                    ],
                    orderQty: [
                        {required: true, trigger: 'blur'},
                    ]
                }
            }
        },
        methods: {},
        mounted() {
            
        },
        watch: {},
        components: {
            'v-details': details
        }
    }
</script>

<style scoped>

</style>
